package com.shanjupay.paymentagent.controller;

import com.shanjupay.paymentagent.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="abc")
public class TestController {

    @Autowired
    private ProviderService providerService;

    //@Autowired
    //private FooService fooService;

    @GetMapping("/test")
    public String test() {
        return providerService.hi();
    }

    //@GetMapping("/test/foo")
    //public String testFoo() {
    //    return fooService.foo();
    //}
}
